﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Ccit.ClassLibrary;

namespace Ccit.UserControls
{
    /// <summary>
    /// Description: 定义范围过滤条件消息对象(不针对任何数据表)
    /// Author: tim 2010-02-26
    /// </summary>
    public class MsRangeClause
    {
        #region public attributes
        /// <summary>
        /// 部门设置条件
        /// </summary>
        public MsDeptClause deptClause { get; set; }

        /// <summary>
        /// 职位设置条件
        /// </summary>
        public MsPosClause posClause { get; set; }

        /// <summary>
        /// 级别设置条件
        /// </summary>
        public MsClsClause clsClause { get; set; }

        /// <summary>
        /// 用户设置条件
        /// </summary>
        public MsUserClause userClause { get; set; }

        /// <summary>
        /// 在未选中项集合中模块查询的条件
        /// </summary>
        public string findUnSel { get; set; }

        /// <summary>
        /// 在已选项集合中模糊查询的条件
        /// </summary>
        public string findSel { get; set; }

        #endregion

        #region constructor
        /// <summary>
        /// 默认构造函数
        /// </summary>
        public MsRangeClause() { }
        #endregion
    }

    /// <summary>
    /// Description: 定义部门条件设置消息对象
    /// Author: tim 2010-02-26
    /// </summary>
    public class MsDeptClause
    {
        #region public attributes
        /// <summary>
        /// 是否包含子部门条件
        /// </summary>
        public eTrueFalse isContainSub { get; set; }

        /// <summary>
        /// 是否包含所有部门条件
        /// </summary>
        public eTrueFalse isALL { get; set; }

        /// <summary>
        /// 无部门条件
        /// </summary>
        public eTrueFalse nonDept { get; set; }

        /// <summary>
        /// 选中的部门Id串
        /// </summary>
        public string selDeptIds { get; set; }
        #endregion

        #region constructor
        /// <summary>
        /// 默认构造函数
        /// </summary>
        public MsDeptClause() { }
        #endregion
    }

    /// <summary>
    /// Description: 定义职位条件设置消息对象
    /// Author: tim 2010-02-26
    /// </summary>
    public class MsPosClause
    {
        #region public attributes
        /// <summary>
        /// 是否包含所有职位条件
        /// </summary>
        public eTrueFalse isALL { get; set; }

        /// <summary>
        /// 无职位条件
        /// </summary>
        public eTrueFalse nonPos { get; set; }

        /// <summary>
        /// 选中的职位Id串
        /// </summary>
        public string selPosIds { get; set; }
        #endregion

        #region constructor
        /// <summary>
        /// 默认构造函数
        /// </summary>
        public MsPosClause() { }
        #endregion
    }

    /// <summary>
    /// Description: 定义级别条件设置消息对象
    /// Author: tim 2010-02-26
    /// </summary>
    public class MsClsClause
    {
        #region public attributes
        /// <summary>
        /// 是否包含所有级别条件
        /// </summary>
        public eTrueFalse isALL { get; set; }

        /// <summary>
        /// 无级别条件
        /// </summary>
        public eTrueFalse nonCls { get; set; }

        /// <summary>
        /// 选中的级别Id串
        /// </summary>
        public string selClsIds { get; set; }
        #endregion

        #region constructor
        /// <summary>
        /// 默认构造函数
        /// </summary>
        public MsClsClause() { }
        #endregion
    }

    /// <summary>
    /// Description: 定义用户条件设置消息对象
    /// Author: tim 2010-02-26
    /// </summary>
    public class MsUserClause
    {
        #region public attributes
        /// <summary>
        /// 在已选中集合中模糊查找的用户名
        /// </summary>
        public string selUserName { get; set; }

        /// <summary>
        /// 在未选中的集合中模糊查找的用户名
        /// </summary>
        public string unSelUserName { get; set; }
        #endregion
    }
}
